{extend name="default/base/base_member" /}
{block name="member_main"}






<form method="get" action="{:url('Membervrrefund/index')}">
            <table class="dsm-search-table">
                <tr>
                    <td>&nbsp;</td>
                    <th>{$Think.lang.refund_buyer_add_time}</th>
                    <td class="w240"><input name="add_time_from" id="add_time_from" type="text" class="text w70" value="{$Request.get.add_time_from}"/><label class="add-on"><i class="iconfont">&#xe8d6;</i></label>&nbsp;&#8211;&nbsp;
                        <input name="add_time_to" id="add_time_to" type="text" class="text w70" value="{$Request.get.add_time_to}"/><label class="add-on"><i class="iconfont">&#xe8d6;</i></label></td>
                    <th><select name="type">
                        <option value="order_sn" {if $Request.get.type== 'order_sn'}selected{/if}>
                        {$Think.lang.refund_order_ordersn}
                        </option>
                        <option value="refund_sn" {if $Request.get.type== 'refund_sn'}selected{/if}>
                        {$Think.lang.refund_order_refundsn}
                        </option>
                        <option value="goods_name" {if $Request.get.type== 'goods_name'}selected{/if}>
                       {$Think.lang.return_goods_name}
                        </option>
                    </select></th>
                    <td class="w160"><input type="text" class="text w150" name="key" value="{$Request.get.key}"/></td>
                    <td class="w70 tc">
                        <input type="submit" class="submit" value="{$Think.lang.ds_search}"/>
                    </td>
                </tr>
            </table>
        </form>
        <table class="dsm-default-table order">
            <thead>
            <tr>
                <th class="w10"></th>
                <th colspan="2">{$Think.lang.site_search_goods}</th>
                <th class="w100">{$Think.lang.refund_order_refund}（{$Think.lang.ds_yuan}）</th>
                <th class="w100">{$Think.lang.refund_state}</th>
                <th class="w100">{$Think.lang.ds_handle}</th>
            </tr>
            </thead>
            <tbody>
            {notempty name="refund_list"}
            {foreach name="refund_list" item="val"}
            <tr>
                <td colspan="20" class="sep-row"></td>
            </tr>
            <tr>
                <th colspan="20">
                    <span class="ml10">{$Think.lang.refund_order_refundsn}{$Think.lang.ds_colon}{$val.refund_sn}</span>
                        <span>{$Think.lang.refund_buyer_add_time}{$Think.lang.ds_colon}{:date('Y-m-d H:i:s',$val.add_time)}</span>
                        <!-- store_name -->
                    <span>
                        <a href="{:url('Store/index',['store_id'=>$val.store_id])}" title="{$val.store_name}">{$val.store_name}</a></span>
                    <span member_id="{$store_list[$val.store_id]['member_id']}">
          <!-- QQ -->
                        {notempty name="store_list[$val.store_id]['store_qq']"}
                        <a target="_blank" href="{$Think.HTTP_TYPE}wpa.qq.com/msgrd?v=3&uin={$store_list[$val.store_id]['store_qq']}&site=qq&menu=yes" title="QQ: {$store_list[$val.store_id]['store_qq']}">
                            <img border="0" src="{$Think.HTTP_TYPE}wpa.qq.com/pa?p=2:{$store_list[$val.store_id]['store_qq']}:52" style=" vertical-align: middle;"/></a>
                      {/notempty}

                        <!-- wang wang -->
                        {notempty name="store_list[$val.store_id]['store_ww']"}
                        <a target="_blank" href="http://amos.im.alisoft.com/msg.aw?v=2&uid={$store_list[$val.store_id]['store_ww']}&site=cntaobao&s=2" class="vm">
                            <img border="0" src="http://amos.im.alisoft.com/online.aw?v=2&uid={$store_list[$val.store_id]['store_ww']}&site=cntaobao&s=2" alt="Wang Wang" style=" vertical-align: middle;"/></a>
                        {/notempty}
          </span>
                </th>
            </tr>
            <tr class="bd-line">
                <td class="bdl"></td>
                <td class="w50">
                    <div class="pic-thumb"><a  href="{:url('Goods/index',['goods_id'=>$val.goods_id])}" target="_blank"><img src="{:goods_thumb($val)}"/></a></div>
                </td>
                <td class="tl">
                    <dl class="goods-name">
                        <dt><a href="{:url('Goods/index',['goods_id'=>$val.goods_id])}" target="_blank">{$val.goods_name}</a></dt>
                        <dd>{$Think.lang.refund_order_ordersn}{$Think.lang.ds_colon}
                            <a href="{:url('Membervrorder/show_order',['order_id'=>$val.order_id])}" target="_blank">{$val.order_sn}</a></dd>
                    </dl>
                </td>
                <td>{$val.refund_amount}</td>
                <td>{$admin_array[$val.admin_state]}</td>
                <td class="bdr"><a  href="{:url('Membervrrefund/view',['refund_id'=>$val.refund_id])}" class="dsm-btn">{$Think.lang.ds_view} </a></td>
            </tr>
            {/foreach}
            </tbody>
            <tfoot>
            <tr>
                <td colspan="20">
                    <div class="pagination">{$show_page|raw}</div>
                </td>
            </tr>
            </tfoot>
            {else /}
            <tbody>
            <tr>
                <td colspan="20" class="norecord">
                    <div class="warning-option"><i>&nbsp;</i><span>{$Think.lang.no_record}</span></div>
                </td>
            </tr>
            </tbody>
           {/notempty}
        </table>


<script type="text/javascript">
    $(function () {
        $('#add_time_from').datepicker({dateFormat: 'yy-mm-dd'});
        $('#add_time_to').datepicker({dateFormat: 'yy-mm-dd'});
    });
</script>


{/block}
